﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/UserMaster.Master" AutoEventWireup="true" CodeBehind="UserCart.aspx.cs" Inherits="BookManageSys.User.UserCart" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style3 {
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        商品名称：<asp:TextBox ID="TxtSearch" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button4" runat="server" Text="查询" OnClick="Button4_Click" />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="1081px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="ChkSelect" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="cartid" HeaderText="购物车ID" />
                <asp:BoundField DataField="username" HeaderText="用户名" />
                <asp:BoundField DataField="productname" HeaderText="商品名" />
                <asp:BoundField DataField="quantity" HeaderText="数量" />
                <asp:BoundField DataField="price" HeaderText="价格" />
            </Columns>
        </asp:GridView>
    </p>
    <p>
        <asp:CheckBox ID="ChkAll" runat="server" Text="全选" OnCheckedChanged="ChkAll_CheckedChanged" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="BtnDelete" runat="server" Text="批量删除" OnClick="BtnDelete_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
    <p class="auto-style3">
&nbsp;<asp:Button ID="BtnBuy" runat="server" Height="42px" Text="购买" Width="127px" OnClick="BtnBuy_Click" />
        <br />
    </p>
    <asp:Panel ID="Panel1" runat="server" Height="173px" Visible="False">
        总价格：<asp:Label ID="LblAmount" runat="server" Text="Label"></asp:Label>
        <br />
        请确认收货信息： 
        <table class="auto-style1">
            <tr>
                <td>姓名：</td>
                <td>
                    <asp:TextBox ID="TxtUserName" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>地址：</td>
                <td>
                    <asp:TextBox ID="TxtAddress" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>电话：</td>
                <td>
                    <asp:TextBox ID="TxtTelephone" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="BtnConfirmBuy" runat="server" Text="购买" OnClick="BtnConfirmBuy_Click" />
                </td>
                <td>
                    <asp:Button ID="BtnCancel" runat="server" Text="取消" OnClick="BtnCancel_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
